package com.springboot.chapter3.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 作者：paopao
 * 版本：1.0
 */
//@Data
//public class User {
//    private Long id;
//    private String userName;
//    private String note;
//}
@Data
@Component("user")
public class User {
    @Value("1")
    private Long id;
    @Value("paopao")
    private String userName;
    @Value("this is note")
    private String note;
}